let data = [
  {
    id: 1,
    name: 'CSS'
  },
  {
    id: 2,
    name: 'JavaScript'
  },
  {
    id: 3,
    name: 'Vue'
  },
  {
    id: 4,
    name: 'React'
  },
  {
    id: 5,
    name: 'Node'
  }
]

let banner = [
  {
    id: 1,
    url: 'http://jty-prefecture-banner.oss-cn-beijing.aliyuncs.com/2019/2019-6-3/2019060320199145.png'
  },
  {
    id: 2,
    url: 'http://jty-prefecture-banner.oss-cn-beijing.aliyuncs.com/2019/2019-6-3/2019060375453344.png'
  },
  {
    id: 3,
    url: 'http://jty-prefecture-banner.oss-cn-beijing.aliyuncs.com/2019/2019-4-16/2019041621197357.png'
  },
  {
    id: 4,
    url: 'http://jty-prefecture-banner.oss-cn-beijing.aliyuncs.com/2019/2019-5-25/2019052519415631.png'
  }
]

export function fetchItems (id) {
  return Promise.resolve(data)
}

export function fetchBanners (id) {
  return Promise.resolve(banner)
}
